home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disk User Volume 2 #5
/
Commodore_Disk_User_Vol.2_5_1989_-.d64
/
news desk demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
5KB
|
178 lines
1000 rem ******************
1010 rem * *
1020 rem * 64 news desk *
1030 rem * *
1040 rem * basic demo *
1050 rem * by *
1060 rem * mike benn *
1070 rem * *
1080 rem ******************
1090 rem
1100 rem ******************
1110 rem * *
1120 rem * start address *
1130 rem * sa = 5947 *
1140 rem * *
1150 rem * sys sa, *
1160 rem * screen select, *
1170 rem * time delay, *
1180 rem * string *
1190 rem * *
1200 rem * sys sa+3, *
1210 rem * (inset screen) *
1220 rem * screen colour, *
1230 rem * spt. def. t/l, *
1240 rem * spt. col. t/l, *
1250 rem * spt. def. t/r, *
1260 rem * spt. col. t/r, *
1270 rem * spt. def. b/l, *
1280 rem * spt. col. b/l, *
1290 rem * spt. def. b/r, *
1300 rem * spt. col. b/r *
1310 rem * *
1320 rem * sys sa+6, *
1330 rem * (return basic) *
1340 rem * *
1350 rem ******************
1360 rem
1370 rem ******************
1380 rem * *
1390 rem * warning *
1400 rem * *
1410 rem * do not use *
1420 rem * any string of *
1430 rem * more than 160 *
1440 rem * characters *
1450 rem * *
1460 rem ******************
1470 rem
1480 a1$="hello and wellcome to the desk top video program "
1490 a2$="weve have a packed program for you so its over to the news desk "
1500 a3$=" the top news story is that a policeman has fixed a wheel clamp "
1510 a4$="to one the royal cars while parked on a double yellow line "
1520 a5$="the queen is said not to be amused"
1530 a6$="britain is helping to lead the fight against computer viruses "
1540 a7$=" sports news "
1550 a8$="a new computer football game has been developed promising a more "
1560 a9$="realistic game "
1570 b1$=" it includes pitch inavsions and fights in the stands "
1580 b2$="city news computerized banking takes another step back "
1590 b3$="as a bank in the wall computer fails to deliver any money "
1600 b4$="and thats the news so far chuck "
1610 b5$="thanks tom computer graphics are they overtaking television "
1620 b6$=" tune in tommorow for an in depth report "
1630 b7$="that about wraps it up so its goodnight from me "
1640 b8$="and its goobye from me "
1650 sa=5947
1660 rem *********
1670 rem * intro *
1680 rem *********
1690 syssa+3,0,63,1,50,15,50,15,63,1
1700 syssa,1,20,a1$+a2$
1710 gosub2310
1720 rem ***************
1730 rem * news item 1 *
1740 rem ***************
1750 syssa+3,0,55,1,56,1,59,1,60,1
1760 syssa,0,20,a3$+a4$
1770 syssa,0,20,a5$
1780 gosub2310
1790 rem ***************
1800 rem * news item 2 *
1810 rem ***************
1820 syssa+3,6,51,5,52,5,53,5,54,5
1830 syssa,0,20,a6$
1840 x=0:y=0
1850 a=64:b=65:d=66:e=67:f=10:g=50
1860 c=0:c1=1:c2=1:c3=1:c4=1
1870 gosub2230
1880 gosub2310
1890 rem ***************
1900 rem * news item 3 *
1910 rem ***************
1920 syssa+3,0,55,1,56,1,61,1,62,1
1930 syssa,0,20,a7$
1940 syssa,0,20,a8$+a9$
1950 syssa,0,20,b1$
1960 gosub2310
1970 rem ***************
1980 rem * news item 4 *
1990 rem ***************
2000 syssa+3,0,55,1,56,1,158,1,159,1
2010 syssa,0,20,b2$+b3$
2020 gosub2310
2030 rem ***************
2040 rem * news item 5 *
2050 rem ***************
2060 syssa+3,0,55,1,56,1,57,1,58,1
2070 syssa,0,20,b4$
2080 gosub2310
2090 rem ***************
2100 rem * news demo 1 *
2110 rem ***************
2120 syssa+3,0,63,1,63,1,63,1,63,1
2130 syssa,1,20,b5$
2140 gosub2320
2150 syssa+3,0,55,1,56,1,57,1,58,1
2160 syssa,0,20,b6$
2170 rem close
2180 syssa+3,0,63,1,63,1,63,1,63,1
2190 syssa,1,20,b7$
2200 syssa+3,0,55,1,56,1,57,1,58,1
2210 syssa,0,20,b8$
2220 syssa+6:end
2230 y=y+1:x=x+1:g=40
2240 syssa+3,c,a+x,c1,b+x,c2,d+x,c3,e+x,c4
2250 ifx=fthenx=0:ify=gthen2270
2260 goto2230
2270 return
2280 syssa+3,c,a+x,c1,b+x,c2,d+x,c3,e+x,c4
2290 return
2300 fortt=0to200:next:return
2310 fort=0to500:next:return
2320 rem pattern animation
2330 y=0:x=0
2340 a=149:b=149:d=153:e=153:f=4
2350 c=0:c1=1:c2=1:c3=1:c4=1
2360 gosub2230
2370 rem square animation
2380 y=0:x=0:g=40
2390 a=144:b=144:d=144:e=144:f=5
2400 c=0:c1=1:c2=1:c3=1:c4=1
2410 gosub2230
2420 rem colour demo
2430 a=63:b=63:d=63:e=63
2440 c1=c1+1:c2=c1+1:c3=c2+1:c4=c4+1:gosub2280:gosub2300
2450 ifc1=15then2470
2460 goto2440
2470 c=0:c1=1:c2=1:c3=1:c4=1
2480 gosub2280
2490 return
2500 rem
2510 rem ******************
2520 rem * *
2530 rem * this part of *
2540 rem * the demo is *
2550 rem * for use with *
2560 rem * the currah *
2570 rem * speech 64 and *
2580 rem * may require *
2590 rem * addaptation *
2600 rem * for use with *
2610 rem * other speech *
2620 rem * software *
2630 rem * *
2640 rem ******************
2650 rem
2660 s1$="sorry for the loss of sound programs will continue later "
2670 s2$="[s(or)(ee)] [f(or)] (dth) loss ov [s(ow)nd] [pr(oo)(gg)rams] "
2680 s3$="will [konti(uu)] [l(aa)t(er)]"
2690 rem
2700 sa=5947
2710 init:rem initalise speech software
2720 say s2$+s3$:rem tell your speech unit to say s2$+s3$
2730 syssa+3,0,63,1,63,1,63,1,63,1
2740 syssa,1,20,s1$
2750 koff:rem turn off your speech unit
2760 end